class CreateLettere < ActiveRecord::Migration
  def self.up
    create_table :lettere do |t|
      t.integer  "numero"
      t.date     "data"
      t.integer  "partner_id"
      t.integer  "contatto_id"
      t.integer  "tipo_documento_id"
      t.string   "oggetto"
      t.text     "corpo_documento"
      t.text     "chiusura_documento"
      t.integer  "created_by"
      t.integer  "updated_by"
      t.datetime "created_at"
      t.datetime "updated_at"
      t.datetime "deleted_at"
      t.timestamps
    end
  end

  def self.down
    drop_table :lettere
  end
end
